
import api from '../../http/apis/apis'

export default {
    namespaced:true,
    //下面写请求
    state:{
      
    },
    actions:{
        async addinsurancetype(context,add){
            const {data} = await api.insurancestype.addinsurance(add)
           return data
        },
        async lgetAllInsurances(context){
            const {data} = await api.insurancestype.lgetAllInsurances()

            return data
        },
        async deleteInsurances(context,_id){
            const {data} = await api.insurancestype.deleteInsurances(_id)
        },
        //保险产品渲染
        async getInsurance(){
            const {data} = await api.insurancestype.getinsurance();
            return data
        },
        async getUpInsurances(context,_id){
            const {data} = await api.insurancestype.getUpInsurances(_id);
            return data
        },
        async sureUpInsurance(context,xg){
            const {data} = await api.insurancestype.sureUpInsurance(xg);
            return data
        }
    }
}